package com.ruoyi.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * redis配置类
 * 
 * @author ruoyi
 */
@Component
@ConfigurationProperties(prefix = "redis")
public class RedisConfig
{
    /** ip */
    private String ip;

    /** 端口 */
    private Integer port;

    /** 密码 */
    private String password;

    /** 超时时间 */
    private Integer timeout;


    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getTimeout() {
        return timeout;
    }

    public void setTimeout(Integer timeout) {
        this.timeout = timeout;
    }
}
